package com.yeskery.nut.web.demo.dto;

import com.yeskery.nut.annotation.api.ApiModel;
import com.yeskery.nut.annotation.api.ApiModelProperty;
import jakarta.validation.constraints.NotBlank;
import lombok.Data;

/**
 * 用户登录dto
 * @author Yeskery
 * 2023/7/28
 */
@Data
@ApiModel("用户登录dto")
public class UserLoginDto {

    /**
     * 用户名
     */
    @ApiModelProperty(value = "用户名", required = true, example = "user")
    @NotBlank(message = "用户名不能为空")
    private String username;

    /**
     * 密码
     */
    @ApiModelProperty(value = "密码", required = true, example = "123456")
    @NotBlank(message = "密码不能为空")
    private String password;
}
